//
//  AddCarViewController.h
//  Audit
//
//  Created by cc on 15-2-11.
//  Copyright (c) 2015年 cc. All rights reserved.
//

#import "BaseViewController.h"
#import "Car.h"
#import <AVFoundation/AVFoundation.h>

typedef void (^addCarBlock)(Car *newCar);
typedef void (^editCarBlock)(Car *editCar);

@interface AddCarViewController : BaseViewController

@property (nonatomic , strong) Car         *currentCar;
@property (nonatomic , strong) addCarBlock  addCar;
@property (nonatomic , strong) editCarBlock  editCar;

@property (nonatomic , strong)UIDatePicker *datePick1;
@property (nonatomic , strong)UIDatePicker *datePick2;
@property (nonatomic , strong)NSArray *arrDomainList;
@property (nonatomic , strong)NSArray *arrGroupList;
@property (nonatomic , strong)NSArray *arrModelList;
@property (nonatomic , strong)NSArray *arrPhaseList;
@property (nonatomic , strong)NSArray *arrPlantList;
@property (nonatomic , strong)NSArray *arrSeriesList;

@property (nonatomic , strong) NSString *doSth;

@property (nonatomic , strong)UITextField *selectedTxt;

@property (nonatomic , assign)BOOL isReading;
@property (nonatomic , assign)BOOL qrcodeFlag;
@property (nonatomic , strong)AVCaptureSession *captureSession;
@property (nonatomic , strong)AVCaptureVideoPreviewLayer *videoPreviewLayer;

@end
